<template>
  <div class="tab">
    <BaseInfo></BaseInfo>
    <div class="tabs">
      <el-tabs type="card">
        <el-tab-pane label="小区统计">
          <Statistics></Statistics>
        </el-tab-pane>
        <el-tab-pane label="站点管理">
          <SiteManage></SiteManage>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { onMounted } from 'vue'
  import { useTagsViewStore } from '@/store/modules/tagsView'
  import BaseInfo from './components/baseInfo/index.vue'
  import SiteManage from './components/siteManage/index.vue'
  import Statistics from './components/statistics/index.vue'
  const TagsViewStore = useTagsViewStore()

  onMounted(async () => {
    TagsViewStore.setHistory(history.state)
  })
</script>

<style lang="scss" scoped>
  .tab {
    width: 96%;
    margin: 20px 2% 20px 2%;
    :deep(.el-tabs__content) {
      background-color: white;
      padding: 0;
    }
    :deep(.el-tabs__header) {
      margin: 0;
    }
    .tabs {
      background-color: white;
      border-radius: 6px;
      box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.12);
    }
  }
</style>
